# -*-coding: utf-8 -*-
# by zw on 2018/5/8

import logging

_logger = logging.getLogger(__name__)
from wserver.sanic import SanicWApi, SanicService

from wserver.base.field import Integer, String, Dictionary

schema1 = {
    "snbids": String(),
    "ltype": Integer(),
    "default": String(),
    "first": String(),
    "lock": Integer(),
    "remark": String(),
    "desks": String(),

}


class LockscreenService(SanicService):
    """
        文件
    """
    pre_url = "lockscreen"

    def __init__(self, request=None, api=None, *args, **kwargs):
        self.request = request
        super().__init__(request, api, *args, **kwargs)

    @SanicWApi.api()
    async def post(self, obj: Dictionary(schema1)):
        """
        新建
        :return:
        """
        pass

    @SanicWApi.api(url="test", method="post")
    async def test(self, obj: Dictionary(schema1)):
        """
        新建
        :return:
        """
        pass
